import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LayoutComponent } from '../layout/layout.component';
import {viewRoutes} from '../views/view-routes';
import {MenuService} from '../service/menu.service';
const routes: Routes = [
    {
        path: '',
        component: LayoutComponent,
        children: viewRoutes,
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class LayoutRoutingModule {
  constructor(public menuService: MenuService) {

  }
}
